package com.sdgakj.enums;

public enum EnumFeedType {
	FCIRCLE(Long.valueOf(1L), "家族圈"),
	DASHIJI(Long.valueOf(2L), "大事记"),
	ACTIVES(Long.valueOf(3L), "家族动态"),
	SHARE(Long.valueOf(4L), "分享"),
	HISTORY(Long.valueOf(5L), "历程");

	private Long code;
	private String name;

	private EnumFeedType(Long code, String name) {
		this.code = code;
		this.name = name;
	}

	public Long getCode() {
		return this.code;
	}

	public void setCode(Long code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static EnumFeedType getEnum(String value) {
		EnumFeedType[] arr$ = values();
		int len$ = arr$.length;

		for(int i$ = 0; i$ < len$; ++i$) {
			EnumFeedType e = arr$[i$];
			if(value.equals(e.getCode())) {
				return e;
			}
		}

		return null;
	}
}
